<?php
namespace app\common\model\user;

use basic\ModelBasic;
use app\common\model as M;

class UserAddress extends ModelBasic
{
   use \traits\ModelTrait;

    /**
     * 列表
     * @Author   FW
     * @DateTime 2020-09-24
     * @Email    123763712@qq.com
     * @param    [type]
     * @return   [type]
     */
    public static function listByUid($uid)
    {
        return static::alias('m')->field('m.id,m.province,m.city,m.area,m.details,m.uid,m.reciver_name,m.mobile,m.address,m.is_default')
        ->where('m.uid',$uid)
        ->select();
    }
} //Class End